object RelCartaComissaoCred: TRelCartaComissaoCred
  Left = 208
  Top = 76
  Width = 855
  Height = 570
  VertScrollBar.Position = 9
  Caption = 'Carta de Comiss'#227'o'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object rlRelatorio: TRLReport
    Left = 0
    Top = -10
    Width = 794
    Height = 1123
    DataSource = dsConsulta
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = -9
    Font.Name = 'Arial'
    Font.Style = []
    Margins.LeftMargin = 6.000000000000000000
    Margins.TopMargin = 8.000000000000000000
    Margins.RightMargin = 6.000000000000000000
    PrintEmpty = False
    Title = 'Carta de comiss'#227'o'
    ExpressionParser = RLExpressionParser1
    AfterPrint = rlRelatorioAfterPrint
    object RLGroup1: TRLGroup
      Left = 23
      Top = 30
      Width = 748
      Height = 1067
      DataFields = 'GRUPO_CODIGO'
      object RLSubDetail2: TRLSubDetail
        Left = 0
        Top = 169
        Width = 748
        Height = 88
        DataSource = dsPostos
        object RLBand3: TRLBand
          Left = 0
          Top = 35
          Width = 748
          Height = 46
          BandType = btColumnFooter
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = False
          object RLDraw45: TRLDraw
            Left = 45
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw61: TRLDraw
            Left = 445
            Top = 0
            Width = 2
            Height = 45
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw64: TRLDraw
            Left = 690
            Top = 0
            Width = 2
            Height = 45
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLLabel21: TRLLabel
            Left = 3
            Top = 2
            Width = 23
            Height = 10
            Caption = 'Totais'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBResult19: TRLDBResult
            Left = 297
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(EMBLIVRE*GRUPO_EMBRATELLIVRE/100)+((VIVORECARGA*COMISSAO_VIVORE' +
              'CARGA)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult20: TRLDBResult
            Left = 197
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(OI*GRUPO_OI/100)+((OIRECARGA*COMISSAO_OIRECARGA)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult21: TRLDBResult
            Left = 97
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(CLARO*GRUPO_CREDIGI/100)+((CLARORECARGA*COMISSAO_CLARORECARGA)/' +
              '100)+((CLARORECARGADIRETO*COMISSAO_CLARORECARGADIRETO)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw68: TRLDraw
            Left = 0
            Top = 15
            Width = 748
            Height = 1
            Align = faLeftOnly
            DrawKind = dkLine
          end
          object rldbISS: TRLDBResult
            Left = 693
            Top = 17
            Width = 52
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'ISS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
            Visible = False
          end
          object resSubtotal: TRLDBResult
            Left = 693
            Top = 32
            Width = 52
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'SUBTOTAL'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLLabel24: TRLLabel
            Left = 623
            Top = 33
            Width = 56
            Height = 10
            Alignment = taRightJustify
            Caption = '(=) SUBTOTAL'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw69: TRLDraw
            Left = 445
            Top = 30
            Width = 303
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
            Visible = False
          end
          object RLDraw70: TRLDraw
            Left = 446
            Top = 44
            Width = 302
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText36: TRLDBText
            Left = 456
            Top = 17
            Width = 231
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'COMISSAO_ISS'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(-) desconto: '
            Visible = False
          end
          object RLDBResult1: TRLDBResult
            Left = 398
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(EMBLDR*GRUPO_EMBRATELLDR/100)+((AMAZONIARECARGA*COMISSAO_AMAZON' +
              'IARECARGA)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult2: TRLDBResult
            Left = 497
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '((TIM*GRUPO_TIM)/100)+((VENDASETUT*COMISSAO_SETUT)/100)+((TIMRV*' +
              'COMISSAO_TIMRV)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw20: TRLDraw
            Left = 746
            Top = 1
            Width = 2
            Height = 45
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw23: TRLDraw
            Left = 0
            Top = 0
            Width = 2
            Height = 15
            Align = faLeftTop
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw19: TRLDraw
            Left = 495
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw46: TRLDraw
            Left = 395
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw47: TRLDraw
            Left = 345
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw48: TRLDraw
            Left = 295
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw49: TRLDraw
            Left = 245
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw50: TRLDraw
            Left = 195
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw51: TRLDraw
            Left = 145
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw52: TRLDraw
            Left = 95
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBResult4: TRLDBResult
            Left = 48
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO+CLARORECARGA+CLARORECARGADIRETO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult5: TRLDBResult
            Left = 149
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'OI+OIRECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult6: TRLDBResult
            Left = 248
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLIVRE+VIVORECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult7: TRLDBResult
            Left = 348
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLDR+AMAZONIARECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult8: TRLDBResult
            Left = 448
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'TIM+VENDASETUT+TIMRV'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBText32: TRLDBText
            Left = 3
            Top = 18
            Width = 328
            Height = 10
            DataField = 'CARTA_CREDITO'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 
              'Valor j'#225' dispon'#237'vel atrav'#233's de OP, efetue o saque da sua comiss'#227 +
              'o no pos at'#233':'
          end
          object RLDBText34: TRLDBText
            Left = 3
            Top = 31
            Width = 227
            Height = 10
            DataFormula = 'COMISSAO_CONTA+'#39' Titular: '#39'+COMISSAO_TITULAR'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 'Conta: '
            Visible = False
          end
          object RLDBText23: TRLDBText
            Left = 344
            Top = 18
            Width = 188
            Height = 10
            DataFormula = 'BANCO+'#39' Ag'#234'ncia:'#39'+COMISSAO_AGENCIA'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 'Banco: '
            Visible = False
          end
          object RLDBText24: TRLDBText
            Left = 299
            Top = 31
            Width = 87
            Height = 10
            DataFormula = 'GRUPO_TIPOCONTA'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Visible = False
          end
          object RLDBResult10: TRLDBResult
            Left = 598
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(VALEGAS*COMISSAO_NACIONALGAS)+(MINASGAS*COMISSAO_MINASGAS)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw6: TRLDraw
            Left = 595
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw39: TRLDraw
            Left = 545
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBResult9: TRLDBResult
            Left = 648
            Top = 2
            Width = 40
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALCREDITO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult3: TRLDBResult
            Left = 549
            Top = 3
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(VALEGAS*NACIONALGAS_VALOR)+(MINASGAS*MINASGAS_VALOR)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw29: TRLDraw
            Left = 645
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBResult11: TRLDBResult
            Left = 693
            Top = 2
            Width = 52
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALCOMISSAO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
        end
        object RLBand2: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 35
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          object RLDraw22: TRLDraw
            Left = 45
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw38: TRLDraw
            Left = 595
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw41: TRLDraw
            Left = 690
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw42: TRLDraw
            Left = 746
            Top = -1
            Width = 2
            Height = 35
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw43: TRLDraw
            Left = 0
            Top = -1
            Width = 2
            Height = 35
            Align = faLeftBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBText8: TRLDBText
            Left = 2
            Top = 2
            Width = 40
            Height = 13
            AutoSize = False
            DataField = 'FRANQUIA_CODIGO'
            DataSource = dsPostos
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText14: TRLDBText
            Left = 197
            Top = 3
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'OI*GRUPO_OI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText20: TRLDBText
            Left = 497
            Top = 3
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(TIM*GRUPO_TIM)/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText25: TRLDBText
            Left = 693
            Top = 19
            Width = 52
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALCOMISSAO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText13: TRLDBText
            Left = 97
            Top = 2
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO*GRUPO_CREDIGI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText11: TRLDBText
            Left = 398
            Top = 3
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLDR*GRUPO_EMBRATELLDR/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText12: TRLDBText
            Left = 297
            Top = 3
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLIVRE*GRUPO_EMBRATELLIVRE/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw5: TRLDraw
            Left = 95
            Top = -1
            Width = 1
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw7: TRLDraw
            Left = 145
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw9: TRLDraw
            Left = 195
            Top = -1
            Width = 1
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw27: TRLDraw
            Left = 245
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw31: TRLDraw
            Left = 295
            Top = -1
            Width = 1
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw32: TRLDraw
            Left = 345
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw33: TRLDraw
            Left = 395
            Top = -1
            Width = 1
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw34: TRLDraw
            Left = 445
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw35: TRLDraw
            Left = 495
            Top = -1
            Width = 1
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText16: TRLDBText
            Left = 48
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'CLARO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText17: TRLDBText
            Left = 148
            Top = 2
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'OI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText18: TRLDBText
            Left = 348
            Top = 3
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLDR'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText19: TRLDBText
            Left = 448
            Top = 3
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TIM'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText22: TRLDBText
            Left = 248
            Top = 3
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLIVRE'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText29: TRLDBText
            Left = 598
            Top = 3
            Width = 45
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'VALEGAS*COMISSAO_NACIONALGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw21: TRLDraw
            Left = 545
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw18: TRLDraw
            Left = 645
            Top = -1
            Width = 2
            Height = 35
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBText21: TRLDBText
            Left = 648
            Top = 20
            Width = 41
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTALCREDITO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText15: TRLDBText
            Left = 550
            Top = 4
            Width = 45
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'VALEGAS*NACIONALGAS_VALOR'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw36: TRLDraw
            Left = 0
            Top = 17
            Width = 748
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLLabel15: TRLLabel
            Left = 2
            Top = 19
            Width = 43
            Height = 12
            Caption = 'Recargas'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -9
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText7: TRLDBText
            Left = 48
            Top = 20
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TOTCLARORECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText26: TRLDBText
            Left = 97
            Top = 20
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '((CLARORECARGA*COMISSAO_CLARORECARGA)/100) + ((CLARORECARGADIRET' +
              'O * COMISSAO_CLARORECARGADIRETO)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText27: TRLDBText
            Left = 148
            Top = 20
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'OIRECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText28: TRLDBText
            Left = 197
            Top = 21
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(OIRECARGA*COMISSAO_OIRECARGA)/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText33: TRLDBText
            Left = 248
            Top = 21
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VIVORECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText35: TRLDBText
            Left = 297
            Top = 21
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(VIVORECARGA*COMISSAO_VIVORECARGA)/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText37: TRLDBText
            Left = 348
            Top = 21
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AMAZONIARECARGA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText38: TRLDBText
            Left = 398
            Top = 21
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText41: TRLDBText
            Left = 550
            Top = 20
            Width = 45
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'MINASGAS*MINASGAS_VALOR'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText42: TRLDBText
            Left = 598
            Top = 19
            Width = 45
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'MINASGAS*COMISSAO_MINASGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText5: TRLDBText
            Left = 448
            Top = 19
            Width = 46
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'VENDASETUT+TIMRV'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText6: TRLDBText
            Left = 497
            Top = 19
            Width = 47
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = '((VENDASETUT*COMISSAO_SETUT)/100) + ((TIMRV*COMISSAO_TIMRV)/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
        end
      end
      object RLSubDetail1: TRLSubDetail
        Left = 0
        Top = 257
        Width = 748
        Height = 18
        DataSource = dsAjustes
        object RLBand4: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 17
          AfterPrint = RLBand4AfterPrint
          object RLDraw74: TRLDraw
            Left = 446
            Top = 15
            Width = 302
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText30: TRLDBText
            Left = 456
            Top = 2
            Width = 227
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTEGRUPO_DESCRICAO'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(+/-) '
          end
          object rldbAjuste: TRLDBText
            Left = 693
            Top = 1
            Width = 52
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTECOMISSAO_VALOR'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw72: TRLDraw
            Left = 690
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw10: TRLDraw
            Left = 746
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw56: TRLDraw
            Left = 445
            Top = 0
            Width = 2
            Height = 16
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
        end
      end
      object rlband: TRLBand
        Left = 0
        Top = 275
        Width = 748
        Height = 808
        AutoExpand = False
        BandType = btColumnFooter
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = False
        Borders.Style = bsVertical
        AfterPrint = rlbandAfterPrint
        BeforePrint = rlbandBeforePrint
        object RLDraw71: TRLDraw
          Left = 746
          Top = 0
          Width = 2
          Height = 20
          Align = faTopOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object rlTexto: TRLRichText
          Left = 1
          Top = 64
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
        object RLDraw11: TRLDraw
          Left = 446
          Top = 19
          Width = 302
          Height = 2
          Align = faRightOnly
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw12: TRLDraw
          Left = 445
          Top = 0
          Width = 2
          Height = 20
          Align = faTopOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object rlTotLiq: TRLLabel
          Left = 456
          Top = 2
          Width = 288
          Height = 14
          Alignment = taRightJustify
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object rlObs: TRLRichText
          Left = 1
          Top = 24
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
        object resGuias: TRLDBResult
          Left = 216
          Top = 2
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataFormula = 'VALGUIAS-(VALGUIAS*COMISSAO_ISS/100)'
          DataSource = dsPostos
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          Visible = False
        end
        object resAjustes: TRLLabel
          Left = 360
          Top = 2
          Width = 8
          Height = 12
          Caption = '0'
          Visible = False
        end
      end
      object a: TRLBand
        Left = 0
        Top = 0
        Width = 748
        Height = 169
        AutoExpand = False
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = True
        BeforePrint = aBeforePrint
        object RLDBText1: TRLDBText
          Left = 535
          Top = 2
          Width = 101
          Height = 14
          Alignment = taRightJustify
          DataField = 'Impressao'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Teresina, '
        end
        object RLDBText2: TRLDBText
          Left = 40
          Top = 24
          Width = 228
          Height = 18
          DataField = 'GRUPO_DESCRICAO'
          DataSource = dsConsulta
          Font.Charset = ANSI_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial Black'
          Font.Style = []
          ParentFont = False
          Text = 'COMISS'#195'O '
        end
        object RLDBText3: TRLDBText
          Left = 40
          Top = 62
          Width = 88
          Height = 14
          DataField = 'GRUPO_ATT'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Att.: '
        end
        object RLDraw81: TRLDraw
          Left = 45
          Top = 152
          Width = 703
          Height = 1
          Align = faRightOnly
          DrawKind = dkLine
        end
        object rlLinha: TRLLabel
          Left = 10
          Top = 156
          Width = 27
          Height = 12
          Align = faBottomOnly
          Caption = 'Posto'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw2: TRLDraw
          Left = 45
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw82: TRLDraw
          Left = 0
          Top = 137
          Width = 748
          Height = 2
          Align = faRightOnly
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw14: TRLDraw
          Left = 595
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLMemo1: TRLMemo
          Left = 40
          Top = 98
          Width = 702
          Height = 29
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Lines.Strings = (
            
              'Informamos, com satisfa'#231#227'o, que estamos repassando a remunera'#231#227'o' +
              ' sobre os cr'#233'ditos digitais'
            
              'vendidos neste(s) posto(s) de recebimento, conforme demonstrativ' +
              'o abaixo:')
          ParentFont = False
        end
        object RLLabel14: TRLLabel
          Left = 648
          Top = 139
          Width = 23
          Height = 12
          Caption = 'Total'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw16: TRLDraw
          Left = 746
          Top = 138
          Width = 2
          Height = 30
          Align = faRightBottom
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw1: TRLDraw
          Left = 145
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw13: TRLDraw
          Left = 245
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw3: TRLDraw
          Left = 345
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw4: TRLDraw
          Left = 445
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel3: TRLLabel
          Left = 48
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel4: TRLLabel
          Left = 97
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw24: TRLDraw
          Left = 95
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw25: TRLDraw
          Left = 195
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel5: TRLLabel
          Left = 149
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel6: TRLLabel
          Left = 197
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw26: TRLDraw
          Left = 295
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel7: TRLLabel
          Left = 448
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel8: TRLLabel
          Left = 497
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw28: TRLDraw
          Left = 495
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel11: TRLLabel
          Left = 248
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel12: TRLLabel
          Left = 298
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw30: TRLDraw
          Left = 395
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel16: TRLLabel
          Left = 397
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel17: TRLLabel
          Left = 348
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 40
          Top = 45
          Width = 150
          Height = 14
          DataField = 'COMISSAO_PERIODO'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          Text = 'Ref. a: '
        end
        object RLDraw53: TRLDraw
          Left = 645
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel19: TRLLabel
          Left = 598
          Top = 155
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw15: TRLDraw
          Left = 545
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw8: TRLDraw
          Left = 690
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw17: TRLDraw
          Left = 0
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel9: TRLLabel
          Left = 649
          Top = 154
          Width = 29
          Height = 12
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel10: TRLLabel
          Left = 692
          Top = 154
          Width = 45
          Height = 12
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel2: TRLLabel
          Left = 548
          Top = 139
          Width = 90
          Height = 12
          Caption = 'Nac. G'#225's/Minas G'#225's'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel1: TRLLabel
          Left = 548
          Top = 155
          Width = 29
          Height = 12
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object resGarantia: TRLDBResult
          Left = 520
          Top = 42
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'COMISSAO_GARANTIA'
          DataSource = dsPostos
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Visible = False
        end
        object resNDepositar: TRLDBResult
          Left = 520
          Top = 58
          Width = 81
          Height = 12
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'COMISSAO_NDEPOSITAR'
          DataSource = dsPostos
          DisplayMask = '###,###,##0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -8
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Visible = False
        end
        object RLLabel13: TRLLabel
          Left = 449
          Top = 139
          Width = 43
          Height = 12
          Caption = 'TIM/Setut'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel18: TRLLabel
          Left = 349
          Top = 139
          Width = 65
          Height = 12
          Caption = 'LDR/Amaz'#244'nia'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel20: TRLLabel
          Left = 247
          Top = 139
          Width = 46
          Height = 12
          Caption = 'Livre/Vivo'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel22: TRLLabel
          Left = 49
          Top = 139
          Width = 88
          Height = 12
          Caption = 'Claro/Claro Recarga'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel23: TRLLabel
          Left = 151
          Top = 139
          Width = 62
          Height = 12
          Caption = 'Oi/Oi Recarga'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
    end
  end
  object RLXLSFilter1: TRLXLSFilter
    DisplayName = 'Planilha Excel'
    Left = 1012
    Top = 414
  end
  object RLPDFFilter1: TRLPDFFilter
    DocumentInfo.Creator = 'FortesReport v3.22 \251 Copyright '#169' 1999-2004 Fortes Inform'#225'tica'
    ViewerOptions = []
    FontEncoding = feNoEncoding
    DisplayName = 'Documento PDF'
    Left = 1169
    Top = 399
  end
  object RLExpressionParser1: TRLExpressionParser
    Left = 1153
    Top = 462
  end
  object RLRichFilter1: TRLRichFilter
    DisplayName = 'Formato RichText'
    Left = 520
    Top = 310
  end
  object qryConsulta: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    AfterOpen = qryConsultaAfterOpen
    BeforeClose = qryConsultaBeforeClose
    OnCalcFields = qryConsultaCalcFields
    CommandTimeout = 90
    Parameters = <
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = Null
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT B.NOME AS BANCO, C.*, A.CARTA_DATAINI, A.CARTA_DATAFIM,'
      'CARTA_GERACAO, CARTA_CREDITO, CARTA_OBS, CARTA_AVISO, CARTA_PAGO'
      
        'FROM CARTA A INNER JOIN COMISSAO C ON (C.COMISSAO_PERIODO=A.COMI' +
        'SSAO_PERIODO)'
      'LEFT JOIN BANCOS B ON (B.CODIGO=C.COMISSAO_BANCO)'
      'WHERE A.COMISSAO_PERIODO=:COMISSAO_PERIODO'
      
        'AND ((SELECT SUM(CLARO+CLARORECARGA+CLARORECARGADIRETO+OI+TIM+EM' +
        'BLDR+EMBLIVRE+VALEGAS+OIRECARGA+VIVORECARGA+AMAZONIARECARGA+MINA' +
        'SGAS+TIMRV)'
      'FROM FRANCOMISSAO F'
      
        'WHERE (F.GRUPO_CODIGO=C.GRUPO_CODIGO) AND (F.COMISSAO_PERIODO=C.' +
        'COMISSAO_PERIODO))>0)'
      'ORDER BY C.GRUPO_CODIGO')
    Left = 266
    Top = 311
    object qryConsultaBANCO: TStringField
      FieldName = 'BANCO'
      Size = 50
    end
    object qryConsultaGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryConsultaCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      EditMask = 'AAA\/99;0; '
      FixedChar = True
      Size = 5
    end
    object qryConsultaGRUPO_CREDIGI: TBCDField
      FieldName = 'GRUPO_CREDIGI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCALGUIA_CODIGO: TIntegerField
      FieldName = 'CALGUIA_CODIGO'
    end
    object qryConsultaCOMISSAO_JUNTAR: TStringField
      FieldName = 'COMISSAO_JUNTAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaCOMISSAO_BANCO: TSmallintField
      FieldName = 'COMISSAO_BANCO'
    end
    object qryConsultaCOMISSAO_AGENCIA: TStringField
      FieldName = 'COMISSAO_AGENCIA'
      FixedChar = True
      Size = 8
    end
    object qryConsultaCOMISSAO_CONTA: TStringField
      FieldName = 'COMISSAO_CONTA'
      Size = 15
    end
    object qryConsultaCOMISSAO_TITULAR: TStringField
      FieldName = 'COMISSAO_TITULAR'
      Size = 50
    end
    object qryConsultaCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      EditFormat = ' - ##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_ATT: TStringField
      FieldName = 'GRUPO_ATT'
      Size = 30
    end
    object qryConsultaGRUPO_DESCRICAO: TStringField
      FieldName = 'GRUPO_DESCRICAO'
      Size = 50
    end
    object qryConsultaGRUPO_TIPOCONTA: TStringField
      FieldName = 'GRUPO_TIPOCONTA'
      Size = 15
    end
    object qryConsultaGRUPO_OI: TBCDField
      FieldName = 'GRUPO_OI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_TIM: TBCDField
      FieldName = 'GRUPO_TIM'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryConsultaCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryConsultaCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryConsultaCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryConsultaCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryConsultaImpressao: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryConsultaCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaGRUPO_EMBRATELLDR: TBCDField
      FieldName = 'GRUPO_EMBRATELLDR'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_EMBRATELLIVRE: TBCDField
      FieldName = 'GRUPO_EMBRATELLIVRE'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCARTA_PAGO: TBooleanField
      FieldName = 'CARTA_PAGO'
    end
    object qryConsultaCOMISSAO_OBS: TMemoField
      FieldName = 'COMISSAO_OBS'
      BlobType = ftFmtMemo
    end
    object qryConsultaCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftFmtMemo
    end
    object qryConsultaCARTA_AVISO: TMemoField
      FieldName = 'CARTA_AVISO'
      BlobType = ftFmtMemo
    end
    object qryConsultaCOMISSAO_OIRECARGA: TBCDField
      FieldName = 'COMISSAO_OIRECARGA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_VIVORECARGA: TBCDField
      FieldName = 'COMISSAO_VIVORECARGA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_CLARORECARGA: TBCDField
      FieldName = 'COMISSAO_CLARORECARGA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_AMAZONIARECARGA: TBCDField
      FieldName = 'COMISSAO_AMAZONIARECARGA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_MINASGAS: TBCDField
      FieldName = 'COMISSAO_MINASGAS'
      Precision = 19
    end
    object qryConsultaCOMISSAO_NACIONALGAS: TBCDField
      FieldName = 'COMISSAO_NACIONALGAS'
      Precision = 19
    end
    object qryConsultaMINASGAS_VALOR: TBCDField
      FieldName = 'MINASGAS_VALOR'
      Precision = 19
    end
    object qryConsultaNACIONALGAS_VALOR: TBCDField
      FieldName = 'NACIONALGAS_VALOR'
      Precision = 19
    end
    object qryConsultaCOMISSAO_CLARORECARGADIRETO: TBCDField
      FieldName = 'COMISSAO_CLARORECARGADIRETO'
      Precision = 19
    end
    object qryConsultaCOMISSAO_TIMRV: TBCDField
      FieldName = 'COMISSAO_TIMRV'
      Precision = 19
    end
  end
  object dsConsulta: TDataSource
    DataSet = qryConsulta
    Left = 274
    Top = 399
  end
  object dsPostos: TDataSource
    DataSet = qryPostos
    Left = 354
    Top = 311
  end
  object qryPostos: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        DataType = ftInteger
        Size = -1
        Value = Null
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        Size = -1
        Value = Null
      end>
    Prepared = True
    SQL.Strings = (
      '--atualizada--'
      
        'SELECT MEDIA*GUIAS AS VALGUIAS,  A.CARTA_DATAINI, A.CARTA_DATAFI' +
        'M, '
      
        'CARTA_GERACAO, CARTA_CREDITO, ISNULL(CARTA_OBS,'#39#39') as CARTA_OBS,' +
        ' CARTA_PAGO, '
      
        'FC.*, C.*,(FC.CLARORECARGA+FC.CLARORECARGADIRETO) AS TOTCLAROREC' +
        'ARGA, '
      
        '((OIRECARGA*COMISSAO_OIRECARGA)+(VIVORECARGA*COMISSAO_VIVORECARG' +
        'A)+'
      
        '(CLARORECARGA*COMISSAO_CLARORECARGA)+(CLARORECARGADIRETO*COMISSA' +
        'O_CLARORECARGADIRETO)+(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)' +
        '+(TIMRV*COMISSAO_TIMRV))/100 AS COMISSAORECARGA,'
      ''
      
        'CLARO+OI+TIM+EMBLDR+EMBLIVRE+oirecarga+vivorecarga+clarorecarga+' +
        'clarorecargadireto+amazoniarecarga+(VALEGAS*NACIONALGAS_VALOR)'
      '+(MINASGAS*MINASGAS_VALOR)+VENDASETUT+TIMRV  AS TOTALCREDITO,'
      ''
      
        '(((VENDASETUT*COMISSAO_SETUT)+(CLARO*GRUPO_CREDIGI)+(OI*GRUPO_OI' +
        ')+(TIM*GRUPO_TIM)+(EMBLDR*GRUPO_EMBRATELLDR)+(EMBLIVRE*GRUPO_EMB' +
        'RATELLIVRE)+'
      
        '(OIRECARGA*COMISSAO_OIRECARGA)+(VIVORECARGA*COMISSAO_VIVORECARGA' +
        ')+(CLARORECARGA*COMISSAO_CLARORECARGA)+(CLARORECARGADIRETO*COMIS' +
        'SAO_CLARORECARGADIRETO)+'
      
        '(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)+(TIMRV*COMISSAO_TIMRV' +
        '))/100)'
      
        '+((VALEGAS*COMISSAO_NACIONALGAS)+(MINASGAS*COMISSAO_MINASGAS)) A' +
        'S TOTALCOMISSAO,'
      ''
      
        '(((((CLARO*GRUPO_CREDIGI)+(OI*GRUPO_OI)+(TIM*GRUPO_TIM)+(EMBLDR*' +
        'GRUPO_EMBRATELLDR)+(EMBLIVRE*GRUPO_EMBRATELLIVRE)+'
      
        '+(OIRECARGA*COMISSAO_OIRECARGA)+(VIVORECARGA*COMISSAO_VIVORECARG' +
        'A)+(CLARORECARGA*COMISSAO_CLARORECARGA)+(CLARORECARGADIRETO*COMI' +
        'SSAO_CLARORECARGADIRETO)+'
      
        '(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)+(TIMRV*COMISSAO_TIMRV' +
        '))/100)+((VALEGAS*COMISSAO_NACIONALGAS)+(VENDASETUT*COMISSAO_SET' +
        'UT)+(MINASGAS*COMISSAO_MINASGAS)))*COMISSAO_ISS)/100 AS ISS,'
      ''
      
        '(((CLARO*GRUPO_CREDIGI)+(VENDASETUT*COMISSAO_SETUT)+(OI*GRUPO_OI' +
        ')+(TIM*GRUPO_TIM)+(EMBLDR*GRUPO_EMBRATELLDR)+(EMBLIVRE*GRUPO_EMB' +
        'RATELLIVRE)+'
      
        '(OIRECARGA*COMISSAO_OIRECARGA)+(VIVORECARGA*COMISSAO_VIVORECARGA' +
        ')+(CLARORECARGA*COMISSAO_CLARORECARGA)+(CLARORECARGADIRETO*COMIS' +
        'SAO_CLARORECARGADIRETO)+'
      
        '(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)+(TIMRV*COMISSAO_TIMRV' +
        '))/100)'
      
        '+((VALEGAS*COMISSAO_NACIONALGAS)+(MINASGAS*COMISSAO_MINASGAS))-(' +
        '(((CLARO*GRUPO_CREDIGI)+(VENDASETUT*COMISSAO_SETUT)+(OI*GRUPO_OI' +
        ')+(TIM*GRUPO_TIM)+(EMBLDR*GRUPO_EMBRATELLDR)+(EMBLIVRE*GRUPO_EMB' +
        'RATELLIVRE)+'
      
        '((VALEGAS*COMISSAO_NACIONALGAS)+(MINASGAS*COMISSAO_MINASGAS))+(O' +
        'IRECARGA*COMISSAO_OIRECARGA)'
      
        '+(VIVORECARGA*COMISSAO_VIVORECARGA)+(CLARORECARGA*COMISSAO_CLARO' +
        'RECARGA)+(CLARORECARGADIRETO*COMISSAO_CLARORECARGADIRETO)+'
      
        '(AMAZONIARECARGA*COMISSAO_AMAZONIARECARGA)+(TIMRV*COMISSAO_TIMRV' +
        '))*COMISSAO_ISS)/10000) AS SUBTOTAL'
      ''
      ''
      
        'FROM CARTA A INNER JOIN COMISSAO C ON (C.COMISSAO_PERIODO=A.COMI' +
        'SSAO_PERIODO)'
      'INNER JOIN FRANCOMISSAO FC ON (FC.GRUPO_CODIGO=C.GRUPO_CODIGO)'
      'AND (FC.COMISSAO_PERIODO=C.COMISSAO_PERIODO)'
      
        'WHERE (FC.GRUPO_CODIGO=:GRUPO_CODIGO) AND (A.COMISSAO_PERIODO=:C' +
        'OMISSAO_PERIODO)'
      'ORDER BY FC.GRUPO_CODIGO, FC.FRANQUIA_CODIGO')
    Left = 356
    Top = 328
    object StringField3: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryPostosVALGUIAS: TBCDField
      FieldName = 'VALGUIAS'
      ReadOnly = True
      currency = True
      Precision = 30
      Size = 19
    end
    object qryPostosGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryPostosCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryPostosFRANQUIA_CODIGO: TIntegerField
      FieldName = 'FRANQUIA_CODIGO'
    end
    object qryPostosGUIAS: TIntegerField
      FieldName = 'GUIAS'
      DisplayFormat = '###,###,###'
    end
    object qryPostosMEDIA: TBCDField
      FieldName = 'MEDIA'
      currency = True
      Precision = 19
      Size = 19
    end
    object qryPostosCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryPostosCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryPostosCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryPostosCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryPostosCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftMemo
    end
    object qryPostosCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryPostosCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryPostosCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryPostosCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      Precision = 19
    end
    object qryPostosVALEGAS: TBCDField
      FieldName = 'VALEGAS'
      currency = True
      Precision = 19
    end
    object qryPostosCARTA_PAGO: TBooleanField
      FieldName = 'CARTA_PAGO'
    end
    object qryPostosTIM: TBCDField
      FieldName = 'TIM'
      currency = True
      Precision = 19
    end
    object qryPostosOI: TBCDField
      FieldName = 'OI'
      currency = True
      Precision = 19
    end
    object qryPostosCLARO: TBCDField
      FieldName = 'CLARO'
      currency = True
      Precision = 19
    end
    object qryPostosEMBLDR: TBCDField
      FieldName = 'EMBLDR'
      currency = True
      Precision = 19
    end
    object qryPostosEMBLIVRE: TBCDField
      FieldName = 'EMBLIVRE'
      currency = True
      Precision = 19
    end
    object qryPostosOIRECARGA: TBCDField
      FieldName = 'OIRECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosGRUPO_ATT: TStringField
      FieldName = 'GRUPO_ATT'
      Size = 30
    end
    object qryPostosGRUPO_DESCRICAO: TStringField
      FieldName = 'GRUPO_DESCRICAO'
      Size = 50
    end
    object qryPostosGRUPO_CREDIGI: TBCDField
      FieldName = 'GRUPO_CREDIGI'
      Precision = 19
    end
    object qryPostosCALGUIA_CODIGO: TIntegerField
      FieldName = 'CALGUIA_CODIGO'
    end
    object qryPostosCOMISSAO_JUNTAR: TStringField
      FieldName = 'COMISSAO_JUNTAR'
      FixedChar = True
      Size = 1
    end
    object qryPostosCOMISSAO_BANCO: TSmallintField
      FieldName = 'COMISSAO_BANCO'
    end
    object qryPostosCOMISSAO_AGENCIA: TStringField
      FieldName = 'COMISSAO_AGENCIA'
      FixedChar = True
      Size = 8
    end
    object qryPostosCOMISSAO_TITULAR: TStringField
      FieldName = 'COMISSAO_TITULAR'
      Size = 50
    end
    object qryPostosCOMISSAO_OBS: TMemoField
      FieldName = 'COMISSAO_OBS'
      BlobType = ftMemo
    end
    object qryPostosGRUPO_TIPOCONTA: TStringField
      FieldName = 'GRUPO_TIPOCONTA'
      Size = 15
    end
    object qryPostosGRUPO_OI: TBCDField
      FieldName = 'GRUPO_OI'
      Precision = 19
    end
    object qryPostosGRUPO_TIM: TBCDField
      FieldName = 'GRUPO_TIM'
      Precision = 19
    end
    object qryPostosCOMISSAO_CONTA: TStringField
      FieldName = 'COMISSAO_CONTA'
      Size = 15
    end
    object qryPostosGRUPO_EMBRATELLDR: TBCDField
      FieldName = 'GRUPO_EMBRATELLDR'
      Precision = 19
    end
    object qryPostosGRUPO_EMBRATELLIVRE: TBCDField
      FieldName = 'GRUPO_EMBRATELLIVRE'
      Precision = 19
    end
    object qryPostosCOMISSAO_OIRECARGA: TBCDField
      FieldName = 'COMISSAO_OIRECARGA'
      Precision = 19
    end
    object qryPostosCOMISSAO_VIVORECARGA: TBCDField
      FieldName = 'COMISSAO_VIVORECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosCOMISSAO_CLARORECARGA: TBCDField
      FieldName = 'COMISSAO_CLARORECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosCOMISSAO_AMAZONIARECARGA: TBCDField
      FieldName = 'COMISSAO_AMAZONIARECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosVIVORECARGA: TBCDField
      FieldName = 'VIVORECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosCLARORECARGA: TBCDField
      FieldName = 'CLARORECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosAMAZONIARECARGA: TBCDField
      FieldName = 'AMAZONIARECARGA'
      currency = True
      Precision = 19
    end
    object qryPostosCOMISSAORECARGA: TBCDField
      FieldName = 'COMISSAORECARGA'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosTOTALCREDITO: TBCDField
      FieldName = 'TOTALCREDITO'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosTOTALCOMISSAO: TBCDField
      FieldName = 'TOTALCOMISSAO'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosISS: TBCDField
      FieldName = 'ISS'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosSUBTOTAL: TBCDField
      FieldName = 'SUBTOTAL'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosBBTOTAL: TBCDField
      FieldName = 'BBTOTAL'
      Precision = 19
    end
    object qryPostosBBQTD: TIntegerField
      FieldName = 'BBQTD'
    end
    object qryPostosCOMISSAO_MINASGAS: TBCDField
      FieldName = 'COMISSAO_MINASGAS'
      Precision = 19
    end
    object qryPostosCOMISSAO_NACIONALGAS: TBCDField
      FieldName = 'COMISSAO_NACIONALGAS'
      Precision = 19
    end
    object qryPostosMINASGAS_VALOR: TBCDField
      FieldName = 'MINASGAS_VALOR'
      Precision = 19
    end
    object qryPostosNACIONALGAS_VALOR: TBCDField
      FieldName = 'NACIONALGAS_VALOR'
      Precision = 19
    end
    object qryPostosMINASGAS: TBCDField
      FieldName = 'MINASGAS'
      Precision = 19
    end
    object qryPostosQTDSETUT: TIntegerField
      FieldName = 'QTDSETUT'
    end
    object qryPostosCOMISSAO_SETUT: TBCDField
      FieldName = 'COMISSAO_SETUT'
      Precision = 19
    end
    object qryPostosVENDASETUT: TBCDField
      FieldName = 'VENDASETUT'
      Precision = 19
    end
    object qryPostosTOTCLARORECARGA: TBCDField
      FieldName = 'TOTCLARORECARGA'
      ReadOnly = True
      Precision = 19
    end
    object qryPostosCLARORECARGADIRETO: TBCDField
      FieldName = 'CLARORECARGADIRETO'
      Precision = 19
    end
    object qryPostosCOMISSAO_CLARORECARGADIRETO: TBCDField
      FieldName = 'COMISSAO_CLARORECARGADIRETO'
      Precision = 19
    end
    object qryPostosTIMRV: TBCDField
      FieldName = 'TIMRV'
      Precision = 19
    end
    object qryPostosCOMISSAO_TIMRV: TBCDField
      FieldName = 'COMISSAO_TIMRV'
      Precision = 19
    end
  end
  object dsAjustes: TDataSource
    DataSet = qryAjustes
    Left = 402
    Top = 303
  end
  object qryAjustes: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 4000
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT * FROM AJUSTECOMISSAO'
      'WHERE (GRUPO_CODIGO=:GRUPO_CODIGO)'
      'AND (COMISSAO_PERIODO=:COMISSAO_PERIODO) '
      'AND (AJUSTECOMISSAO_CREDITO = 1)')
    Left = 404
    Top = 326
    object qryAjustesGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryAjustesCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryAjustesAJUSTEGRUPO_DESCRICAO: TStringField
      FieldName = 'AJUSTEGRUPO_DESCRICAO'
      Size = 30
    end
    object qryAjustesAJUSTECOMISSAO_VALOR: TBCDField
      FieldName = 'AJUSTECOMISSAO_VALOR'
      DisplayFormat = '###,###,##0.00'
      Precision = 19
    end
  end
end
